import request from '@/utils/request'
export function listCostType() {
  return request({
    url: '/biz/bizCost/listCostType',
    method: 'get'
  })
}
// 查询成本开支列表
export function listBizCost(query) {
  return request({
    url: '/biz/bizCost/list',
    method: 'get',
    params: query
  })
}

// 查询成本开支详细
export function getBizCost(id) {
  return request({
    url: '/biz/bizCost/' + id,
    method: 'get'
  })
}

// 新增成本开支
export function addBizCost(data) {
  return request({
    url: '/biz/bizCost',
    method: 'post',
    data: data
  })
}

// 修改成本开支
export function updateBizCost(data) {
  return request({
    url: '/biz/bizCost',
    method: 'put',
    data: data
  })
}

// 删除成本开支
export function delBizCost(id) {
  return request({
    url: '/biz/bizCost/' + id,
    method: 'delete'
  })
}
